/**
 * $Id: BookChapterAdminCommand.java 24 2011-06-17 13:31:30Z feigme $
 */
package com.iary.interfaces.web.admin.book;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import com.iary.domain.model.book.chapter.BookChapterType;

public class BookChapterAdminCommand {

	private Long bookId;
	private Long chapterId;
	private Long itemId;
	@NotEmpty
	private String name;
	@NotEmpty
	private String path;
	private String description;
	@NotNull
	private BookChapterType type;
	@NotNull
	@NumberFormat(style = Style.NUMBER)
	private Double order;

	private BookChapterType[] chapterTypeList = BookChapterType.values();

	public Long getBookId() {
		return bookId;
	}

	public void setBookId(Long bookId) {
		this.bookId = bookId;
	}

	public Long getChapterId() {
		return chapterId;
	}

	public void setChapterId(Long chapterId) {
		this.chapterId = chapterId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BookChapterType getType() {
		return type;
	}

	public void setType(BookChapterType type) {
		this.type = type;
	}

	public Double getOrder() {
		return order;
	}

	public void setOrder(Double order) {
		this.order = order;
	}

	public BookChapterType[] getChapterTypeList() {
		return chapterTypeList;
	}

	public void setChapterTypeList(BookChapterType[] chapterTypeList) {
		this.chapterTypeList = chapterTypeList;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
}
